import React from "react";
import { View } from "@tarojs/components"

interface IBaseBlockProps {
    classNames?: string
    children: React.ReactNode
}

type IBlockProps = IBaseBlockProps;

export const TBlock = (props: IBlockProps) => {
    const { classNames, children } = props
    return (
        <View className={`w-full h-max px-[20px] ${classNames}`}>
            {children}
        </View>
    )
}